//头部右侧登录注册/在线体验
$('.top-right .nav-btn div.hover-bg-color').hover(
    function(){
        var $this=$(this);
        $this.css('backgroundColor','#e9611d');
    },
    function(){
        var $this=$(this);
        $this.css('backgroundColor','#F29015');
    }
)
$('.top-right .nav-btn div.loginr').hover(
    function(){
        var $this=$(this);
        $this.addClass('hover-bg-color');
        $this.children().css('color','#fff');
    },
    function(){
        var $this=$(this);
        $this.removeClass('hover-bg-color');
        $this.children().css('color','#F29015');
    }
)
//头部跳转document.html
$('#State1').click(function(){
    localStorage.setItem('state',1);
    localStorage.setItem('stateChild',null);
})
$('#State2').click(function(){
    localStorage.setItem('stateChild',null);
})
//尾部跳转
$('.foot .cont .ul>div:first-child>h4').click(function() {
    window.location.href='product.html';
})
$('.foot .cont .ul>div:first-child>p').click(function() {
    window.location.href='product.html';
})
/*
$('.foot .cont .ul>div:first-child>p:nth-child(3)').click(function() {
    productHelp(2);
})*/
//尾部跳转document.html
$('.foot .ul-LI:nth-child(2)>h4').click(function(){
    localStorage.setItem('stateChild',null);
    window.location.href='document.html';
})
$('.foot .ul-LI:nth-child(2)>p').click(function(){
    var $this=$(this);
    var aid=$this.attr('aid');
    //console.log('aid',aid);
    localStorage.setItem('stateChild',aid);
    window.location.href='document.html';
})
$('.foot .ul-LI:nth-child(3)>h4').click(function(){
    localStorage.setItem('state',1);
    localStorage.setItem('stateChild',null);
    window.location.href='document.html';
})
$('#java').click(function(){
    localStorage.setItem('state',1);
    localStorage.setItem('stateChild',null);
    localStorage.setItem('who',1);
    window.location.href='document.html';
})
$('#ccc').click(function(){
    localStorage.setItem('state',1);
    localStorage.setItem('stateChild',null);
    localStorage.setItem('who',2);
    window.location.href='document.html';
})
$('#php').click(function(){
    localStorage.setItem('state',1);
    localStorage.setItem('stateChild',null);
    localStorage.setItem('who',3);
    window.location.href='document.html';
})
$('#python').click(function(){
    localStorage.setItem('state',1);
    localStorage.setItem('stateChild',null);
    localStorage.setItem('who',4);
    window.location.href='document.html';
})

